﻿#ifndef TEXTMESSAGE_H
#define TEXTMESSAGE_H

#include "basemessage.h"
#include <QResizeEvent>
#include <QSize>
#include <QtGlobal>

class TextMessage : public BaseMessage
{
    Q_OBJECT
public:
    explicit TextMessage(const QString &text,QWidget *parent = nullptr);
    explicit TextMessage(const QString &text,const QString &filePath,QWidget *parent = nullptr);
    QString getFilePath();
protected:
    void resizeEvent(QResizeEvent* event);
private:
    QString filePath;
    void setDefaultOption();
};

#endif // TEXTMESSAGE_H
